package com.shundr.shipper.common;

import android.os.Bundle;
import android.text.Html;
import android.widget.TextView;

import com.shundr.shipper.R;
import com.shundr.shipper.base.BaseActivity;
import com.shundr.shipper.common.util.AreaUtils;

/**
 * 使用协议及条款
 * AgreementActivity
 * 
 * @author larry 2015-5-7 上午10:08:14 
 * @version 1.0.0
 *
 */
public class AgreementActivity extends BaseActivity {

	private TextView tvAgreement;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_agreement);
		tvAgreement = (TextView)findViewById(R.id.tv_agreement);
		try {
			String agreement = AreaUtils.getAssetString(mContext, "agreement.xml");
			tvAgreement.setText(Html.fromHtml(agreement));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
